package school.entity;

import java.util.List;

public class SubjectDaoTest {

	public static void main(String[] args) {
		SubjectDao dao = new SubjectDao();
		List<Subject> list = dao.findAll();
		for (Subject sub : list) {
			System.out.println(sub);
		}

		System.out.println(">>>>>>>>>>>>>>");
		Subject sb = new Subject(75, "数学1", 12, 45);
		boolean flag = dao.addSubject(sb);
		if (flag = true) {
			System.out.println("添加成功");
		} else {
			System.out.println("添加失败");
		}
	}

}
